<?php
/**
 * Created by PhpStorm.
 * User: wodrow
 * Date: 3/28/17
 * Time: 11:20 AM
 */

namespace common\models\base;

use Yii;

/**
 * This is the model class for table "{{%gps_company}}".
 *
 * @property integer $id
 * @property string $sign
 * @property string $name
 * @property string $description
 * @property string $gps_connect_uri
 * @property string $yishang_gps_connect_sign_key
 */
class GpsPlatform extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return '{{%gps_platform}}';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['sign', 'name', 'gps_connect_uri', 'gps_connect_sign_key'], 'required'],
            [['sign'], 'string', 'max' => 10],
            [['name'], 'string', 'max' => 20],
            [['description'], 'string', 'max' => 255],
            [['gps_connect_sign_key', 'gps_connect_uri'], 'string', 'max' => 50],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'sign' => 'Sign',
            'name' => 'Name',
            'description' => 'Description',
            'gps_connect_uri' => 'Gps Connect Uri',
            'gps_connect_sign_key' => 'Gps Connect Sign Key',
        ];
    }
}